﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Activity.Model
{
    public class TimeTrackingSalePartReportModel
    {
        public class CoreModel: TitleCoreModel
        {
            public string Manager { get; set; }
            public string Director { get; set; }
            public string ProvinceName { get; set; }
            public string ShopName { get; set; }
            public decimal? FactAMT { get; set; }
            public long? SalePartQty { get; set; }
            public long? SaleBillPartQty { get; set; }
            public decimal? FactPartAMT { get; set; }
            public long? SaleBillQty { get; set; }
            public long? KpiQty { get; set; }
        }

        public class NeceModel: CoreModel
        {
            public decimal? Clossing { get; set; }
            public decimal? UnitPrice { get; set; }
            public decimal? SalelDv { get; set; }
        }

        public class TitleCoreModel
        {
            public string BillSegDate { get; set; }
        }

        public class TitleModel: TitleCoreModel
        {
            public string BillSegDateStr { get; set; }
        }

        public class ListModel
        {
            public string Manager { get; set; }
            public string Director { get; set; }
            public string ProvinceName { get; set; }
            public IList<IGrouping<string, NeceModel>> group { get; set; }
        }

        public class FinalModel
        {
            public IList<TitleModel> title { get; set; }
            public IList<ListModel> list { get; set; }
        }
    }
}
